package com.rd.p2p.mobile.borrow;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;

import com.opensymphony.xwork2.ModelDriven;
import com.qdlc.p2p.biz.web.action.BaseAction;
import com.qdlc.p2p.dal.model.BorrowModel;

/**
 * 我的借款
 * 
 * @author wuhuan
 */
public class MobileMyBorrowAction extends BaseAction<BorrowModel> implements ModelDriven<BorrowModel> {

	@Action(value = "/mobile/usercenter/borrow/mine", results = {
			@Result(name = "mine", type = "ftl", location = "/mobile/member/borrow/mine.html") })
	public String mine() throws Exception {
		return "mine";
	}

	/**
	 * 还款列表
	 * 
	 * @throws Exception if has error
	 */
	@Action(value = "/mobile/usercenter/borrow/repayList", results = {
			@Result(name = "repayList", type = "ftl", location = "/mobile/member/borrow/repayList.html") })
	public String repayList() throws Exception {
		return "repayList";
	}

	/**
	 * 标准版正常还款
	 * 
	 * @throws Exception if has error
	 */
	@Action(value = "/mobile/usercenter/borrow/repay", results = {
			@Result(name = "repay", type = "ftl", location = "/mobile/member/borrow/repay.html") })
	public String repay() throws Exception {
		return "repay";
	}
}
